<?php

require_once 'const/RequestConst.php';

class InstallController extends Zend_Controller_Action {

    public function init() {
        /* Initialize action controller here */
    }

    public function indexAction() {
        $this->view->admin = true;
    }

    public function finishAction() {
        $this->view->admin = true;
        $request = $this->getRequest();
        $rootPassword = $request->getParam(P_ROOT_PASSWORD);
        $adminPassword = $request->getParam(P_ADMIN_PASSWORD);
        Application_Model_Install::install($rootPassword, $adminPassword);
    }

}

